package com.firmail.model;

import lombok.Data;

import java.net.InetAddress;
import java.net.UnknownHostException;

@Data
public class WrapText {

    private String simulatorUrl;

    private String simulatorPort;
    //获取主机ip
    private String localHostAddr;
    private String configIP;
    private String simulatorPath;
    private String callbackReport;

    public String getLocalHostAddr() {

        try {
            return InetAddress.getLocalHost().getHostAddress().toString();
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }
        return localHostAddr;
    }

    public void setLocalHostAddr(String localHostAddr) {
        this.localHostAddr = localHostAddr;
    }

}
